﻿<%@ Page Language="c#" CodeBehind="ResourceDirectoryPage.aspx.cs" AutoEventWireup="false"
    Inherits="CIS.Resource.ResourceDirectoryPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>ResourceDirectoryPage</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <style type="text/css">
        @import url( ../css/ppt.css );
    </style>
    <script language="javascript">
        function window.onload() {
            attachEvents();
        }

        function attachEvents() {
            var eles = document.getElementsByTagName("A");
            for (var i = 0; i < eles.length; i++) {
                var ele = eles.item(i);
                if (ele.id.indexOf('lbDelete') != -1) {
                    ele.attachEvent('onclick', __confirmDelete);
                }
            }
        }

        function __confirmDelete() {
            if (!confirm("确定删除该CIS信息/Sure To Delete ?\r\n")) {
                return false;
            }
            return true;
        }
    </script>
</head>
<body ms_positioning="GridLayout">
    <form id="Form1" method="post" runat="server">
    <table id="table1" style="border-collapse: collapse" cellpadding="0" width="100%"
        border="0">
        <tr>
            <td>
                <table id="table2" style="border-collapse: collapse" cellpadding="0" width="100%"
                    border="0">
                    <tr>
                        <td>
                            <!--公告栏表格开始-->
                            <table id="table2" style="border-collapse: collapse" cellpadding="0" width="100%"
                                border="0">
                                <tr>
                                    <td width="200">
                                        <asp:Image ID="iResource" runat="server" Height="28" Width="200" ImageUrl="../images/title_SharedInfo.jpg">
                                        </asp:Image>
                                    </td>
                                    <td width="100%" background="../images/title_bg.jpg">
                                    </td>
                                    <td width="50">
                                        <img height="28" src="../images/title_right.jpg" width="50" border="0">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" height="2">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <table id="table1" style="border-collapse: collapse" cellpadding="0" width="100%"
                                            border="0">
                                            <tr>
                                                <td width="24" height="22">
                                                    <img height="22" src="../images/table_c1_r1.jpg" width="24" border="0">
                                                </td>
                                                <td width="212" background="../images/table_c2_r1.jpg" height="22">
                                                </td>
                                                <td width="100%" background="../images/table_c2_r1.jpg" height="22">
                                                </td>
                                                <td width="209" height="22">
                                                    <img height="22" src="../images/table_c3_r1.jpg" width="209" border="0">
                                                </td>
                                                <td width="25" height="22">
                                                    <img height="22" src="../images/table_c4_r1.jpg" width="25" border="0">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="bottom" width="24" background="../images/table_c1_r2.jpg">
                                                    <img height="91" src="../images/table_c1_r3.jpg" width="24" border="0">
                                                </td>
                                                <td valign="top" align="left" bgcolor="#e8e8e8" colspan="3">
                                                    <!--此处填写内容-->
                                                    <table width="100%">
                                                        <tr width="100%">
                                                            <td colspan="7">
                                                                <asp:Button ID="newBtn" CssClass="2" runat="server" Text="新建"></asp:Button>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <asp:DataGrid ID="ResourceDirectoryDg" runat="server" Width="100%" AllowPaging="True"
                                                        AutoGenerateColumns="False" DataKeyField="DirectoryId">
                                                        <EditItemStyle BackColor="#e8e8e8"></EditItemStyle>
                                                        <ItemStyle BackColor="#e8e8e8"></ItemStyle>
                                                        <Columns>
                                                            <asp:TemplateColumn HeaderText="Name">
                                                                <HeaderStyle HorizontalAlign="Center" CssClass="headerStyle"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label1" Text='<%# DataBinder.Eval(Container.DataItem,"DirectoryName")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Province">
                                                                <HeaderStyle HorizontalAlign="Center" CssClass="headerStyle"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label2" Text='<%# DataBinder.Eval(Container.DataItem,"RegionName")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="hasFile">
                                                                <HeaderStyle HorizontalAlign="Center" CssClass="headerStyle"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="label12222" runat="server">
																				<%# GetYesOrNo(DataBinder.Eval(Container.DataItem,"DirectoryId"))%>
                                                                    </asp:Label>
                                                                    </asp:ImageButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Edit">
                                                                <HeaderStyle HorizontalAlign="Center" CssClass="headerStyle"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="Imagebutton1" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"DirectoryId")%>'
                                                                        CommandName="Edit" ImageUrl="../images/icon_edit.gif" CausesValidation="False">
                                                                    </asp:ImageButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Delete">
                                                                <HeaderStyle HorizontalAlign="Center" CssClass="headerStyle"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:LinkButton runat="server" ID="lbDelete" CommandName="delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"DirectoryId")%>'
                                                                        Title="Delete">
																				<img src="../images/icon_delete.gif" border="0"></img>
                                                                    </asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                        </Columns>
                                                        <PagerStyle HorizontalAlign="Right" Mode="NumericPages" PageButtonCount="5"></PagerStyle>
                                                    </asp:DataGrid>
                                                    <!--此处填写内容-->
                                                </td>
                                                <td valign="top" width="25" background="../images/table_c4_r3.jpg">
                                                    <img height="93" src="../images/table_c4_r2.jpg" width="25" border="0">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="24" height="23">
                                                    <img height="23" src="../images/table_c1_r4.jpg" width="24" border="0">
                                                </td>
                                                <td width="212" height="23">
                                                    <img height="23" src="../images/table_c2_r4.jpg" width="212" border="0">
                                                </td>
                                                <td width="100%" background="../images/table_c3_r4.jpg" height="23">
                                                </td>
                                                <td width="209" background="../images/table_c3_r4.jpg" height="23">
                                                </td>
                                                <td width="25" height="23">
                                                    <img height="23" src="../images/table_c4_r4.jpg" width="25" border="0">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <!--公告栏表格结束-->
                        </td>
                    </tr>
                    <tr>
                        <td height="10">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
